import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';

// 获得机物料出库单分页
export const machineSuppliesDeliveryListPage = (data) => postRequest('/production/machine-materials-outbound/page', data);

// 创建机物料出库单
export const createSuppliesDeliveryListPost = (data) => postRequest('/production/machine-materials-outbound/create', data);

// 更新机物料出库单
export const updateSuppliesDeliveryListPost = (data) => putRequest('/production/machine-materials-outbound/update', data);

// 获得机物料出库单--查看详情

export const getExamineParticularsGet = (params) => getRequest('/production/machine-materials-outbound/get', params);

// 提交
export const onSubmitDataListPost = (data) => postRequest('/production/machine-materials-outbound/submit', data);
// 机物料申请撤销提交
export const repealSubmitDataListPost = (data) => postRequest('/production/machine-materials-outbound/clear-submit', data);
// 机物料申请撤销提交
export const deleteSubmitDataListDelete = (data) => deleteRequest('/production/machine-materials-outbound/delete', data);

// 机物料出库单
// 审核
export const auditSubmitDataListPost = (data) => postRequest('/production/machine-materials-outbound/audit', data);

// 机物料出库单--已出库--撤销
export const machineMaterialOutWarehouseOrderPost = (data) => postRequest('/production/machine-materials-outbound/clear-audit', data);
